import { BaseEntity } from '@cool-midway/core';
import { Column, Index, Entity } from 'typeorm';

/**
 * 文件空间信息
 */
@Entity('space_info')
export class SpaceInfoEntity extends BaseEntity {
  @Column({ comment: '标题',nullable: true })
  title: string;

  @Column({ comment: '描述' })
  description: string;

  @Column({ comment: '价格' })
  price: string;

  @Column({ comment: '年龄段' })
  age_group: string;

  @Column({ comment: '活动时间' })
  activity_time: string;

  @Column({ comment: '集合地点' })
  gathering_place: string;

  @Column({ comment: '人数' })
  participant_count: string;

  @Column({ type:'longtext', comment: '行程'})
  itinerary: string;

  @Column({ type:'longtext', comment: '费用'})
  fees: string;

  @Column({ type:'longtext', comment: '须知'})
  notices: string;

  @Column({ comment: '状态' })
  status: string;

  @Column({ comment: '省' })
  province: string;

  @Column({ comment: '市' })
  city: string;

  @Column({ comment: '区' })
  district: string;

  @Column({ comment: '省市区' ,default:"1"})
  pca: string;

  @Column({ comment: '图片' })
  img_url: string;

}
